<template>
  <div class="fle">
    <div class="list" v-for="(item, index) in objData" :key="index">
      <div class="list-img">
        <img :src="item.imgUrl" alt="" />
      </div>
      <div class="list-cont">
        <div class="cont-title">{{ item.title }}</div>
        <div class="cont-desc">
          <span class="desc-name">{{ item.name }}</span>
          <span class="desc-time" v-if="item.time">{{ item.time }}</span>
        </div>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: {
    objData: {
      type: Array,
      default: () => [],
    },
  },
  data() {
    return {};
  },
};
</script>
<style scoped lang="scss">
.list {
  display: flex;
  padding-bottom: 30px;
  .list-img {
    width: 50px;
    height: 50px;
    img {
      width: 100%;
      height: 100%;
      vertical-align: middle;
    }
  }
  .list-cont {
    flex: 1;
    padding-left: 23px;
    .cont-title {
      font-family: PingFangSC, PingFang SC;
      font-weight: 400;
      font-size: 16px;
      color: #272b2d;
      line-height: 22px;
      text-align: left;
      font-style: normal;
    }
    .cont-desc {
      padding-top: 6px;
      .desc-name {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 12px;
        color: #676b6b;
        line-height: 17px;
        text-align: left;
        font-style: normal;
      }
      .desc-time {
        font-family: PingFangSC, PingFang SC;
        font-weight: 400;
        font-size: 12px;
        color: #676b6b;
        line-height: 17px;
        text-align: left;
        font-style: normal;
        padding-left: 28px;
      }
    }
  }
}
</style>
